package essential.ch3;

/**
 * @Date 2021/10/23
 * @Created by Jonathan
 */
public class Transitive {
    public static void main(String[] args) {
        PencilBox p1 = new PencilBox(1, "A");
        PencilBox p2 = new PencilBox(1, "B");
        Box b = new Box(1);
        System.out.print("传递性:");
        System.out.printf("%s ", p1.equals(b));
        System.out.printf("%s ", p2.equals(b));
        System.out.printf("%s ", p2.equals(p1));
    }
}
